#include "EWAUILayout.hpp"

namespace Eyer
{
    int EWAUILayout::OnDraw()
    {
        RemoveAllUIGraph();
        EyerSmartPtr<EWAUIGraphRect> rect(new EWAUIGraphRect());
        rect->xy.SetX(0);
        rect->xy.SetY(0);
        rect->wh = wh;
        rect->background = bgColor;
        AddUIGraph(rect);
        return 0;
    }

    EWAUILayout::EWAUILayout(EWAUILayoutType layoutType, EWAUILayoutParams width, EWAUILayoutParams height)
        : EWAUIWidget(width, height)
    {
        widgetName = "EWAUILayout";
        SetLayoutType(layoutType);
    }

    EWAUILayout::~EWAUILayout()
    {

    }
}